package com.cloud.crashdemo

import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        initView()
    }

    private fun initView() {
        val textView:TextView = findViewById(R.id.tv_test)
        textView.setOnClickListener {
           throw RuntimeException("自定义异常：这是抛出的异常")
        }
    }
}